package logMonitor.domain;

/**
 * Created by lenovo on 2018/1/14.
 */
public class Record {
    private int id;
    private int ruleId;
    private String src_ip;
    private String dst_ip;
    private String creatTime;
    private double value; //从源ip到目的ip的数量

    public  Record(){}

    public Record( int ruleId, String src_ip, String dst_ip, String creatTime, double value) {
        this.ruleId = ruleId;
        this.src_ip = src_ip;
        this.dst_ip = dst_ip;
        this.creatTime = creatTime;
        this.value = value;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRuleId() {
        return ruleId;
    }

    public void setRuleId(int ruleId) {
        this.ruleId = ruleId;
    }

    public String getSrc_ip() {
        return src_ip;
    }

    public void setSrc_ip(String src_ip) {
        this.src_ip = src_ip;
    }

    public String getDst_ip() {
        return dst_ip;
    }

    public void setDst_ip(String dst_ip) {
        this.dst_ip = dst_ip;
    }

    public String getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime;
    }

    public double getValue() {
        return value;
    }
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", ruleId=" + ruleId +
                ", src_ip='" + src_ip + '\'' +
                ", dst_ip='" + dst_ip + '\'' +
                ", creatTime='" + creatTime + '\'' +
                ", value=" + value +
                '}';
    }
}
